﻿using System;
using System.Collections.Generic;
using System.Linq;
using GameSchool.Models;

namespace GameSchool.DAL
{
    interface IVideoRepository : IDisposable
    {
        // Nánari upplýsingar um hvernig Repository patternið virkar er á:
        // http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application

        List<Video> GetVideo();
        Video GetVideoById(int videoId);
        void InsertVideo(Video video);
        void DeleteVideo(int videoId);
        void UpdateVideo(Video video);
        void Save();

        void DeleteComment(int videoCommentId);

        Course GetCourseById(int courseId);
        List<VideoComments> GetComments(int videoId);
        void InsertVideoComment(VideoComments videocomments);
    }
}
